<?php if(get('ini_bulletin')){?>
<div id="bulletin">
	<div class="immax">
		<i class="icon-bullhorn"></i>
		<ul>
<?php
if (!get('ini_custom_bulletin')){
	$loop = new WP_Query( array( 'post_type' => 'bulletin', 'posts_per_page' => get('ini_bulletin_num') ) );
	while ($loop->have_posts()): $loop->the_post();
?>
			<li><a href="<?php the_permalink(); ?>"><?php utf8_str(the_title(),0,30)?></a></li>
<?php
endwhile;
wp_reset_query();
} else {
	echo get('ini_bulletin_code');
}?>
		</ul>
		<button class="close">×</button>
	</div>
</div>
<?php } ?>